<?php

use Illuminate\Database\Migrations\Migration;

class CreateNguoidungTable extends Migration
{
    /**
    * Run the migrations.
    *
    * @return void
    */
    public function up()
    {
        schema::create('nguoi_dung', function($table)
        {
            $table->engine='innodb';
            $table->increments('id')->unsigned();
            $table->integer('id_nhom_quyen')->unsigned();
            $table->string('tai_khoan', 20)->unique();
            $table->string('password', 256);
            $table->boolean('hoat_dong');
        });
    }

    /**
    * reverse the migrations.
    *
    * @return void
    */
    public function down()
    {
        schema::drop('nguoi_dung');
    }
}